import json
number=input('What is your favorite number ')
filename='number.json'
with open(filename,'w') as f_ob:
    json.dump(number,f_ob)
    print('I knowyour favorite number! It is '+number)